import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import Vant from 'vant'
import "animate.css"
import 'vant/lib/index.css'
import axios from "axios";
// import PubSub from 'pubsub-js'
// Vue.use(PubSub)
Vue.use(Vant)
import { Lazyload } from 'vant';
Vue.use(Lazyload, {
  lazyComponent: true,
});
Vue.config.productionTip = false;
Vue.prototype.$http = axios;
new Vue({
  render: h => h(App),
  store,
  beforeCreate() {
    // 安装全局总线
    Vue.prototype.$bus = this;
  },
  router
}).$mount('#app')
